import { configureLogger } from 'mobx-log';
import ReactDOM from 'react-dom/client';
import { BrowserRouter, useRoutes } from 'react-router-dom';
import routes from './router';
import './style.css';

export function App() {
  const element = useRoutes(routes);
  return <>{element}</>;
}

configureLogger({
  storeConsoleAccess: true,
});

const container = document.getElementById('root')!;
const root = ReactDOM.createRoot(container);
root.render(
  <BrowserRouter>
    <App />
  </BrowserRouter>,
);
